/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ins.dao.InsDataLinkDao;
import com.thinkgem.jeesite.modules.ins.entity.InsDataLink;

/**
 * 检验报告书-分类Service
 * @author fanqinglong
 * @version 2017-11-20
 */
@Service
@Transactional(readOnly = true)
public class InsDataLinkService extends CrudService<InsDataLinkDao, InsDataLink> {

	public InsDataLink get(String id) {
		return super.get(id);
	}
	
	public List<InsDataLink> findList(InsDataLink insDataLink) {
		return super.findList(insDataLink);
	}
	
	@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly = false, rollbackFor = Exception.class)
	public void save(InsDataLink insDataLink) {
		super.save(insDataLink);
	}
	
	@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly = false, rollbackFor = Exception.class)
	public void delete(InsDataLink insDataLink) {
		super.delete(insDataLink);
	}
	
	public List<InsDataLink> getForUnique(InsDataLink insDataLink){
		return dao.getForUnique(insDataLink);
	}
}